package com.dragandjuric.lse.boncote.tapestry.services;

import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.ioc.MappedConfiguration;

import com.dragandjuric.lse.boncote.service.Persons;
import com.dragandjuric.lse.boncote.service.PersonsBean;

public class AppModule {

	public static void contributeApplicationDefaults(
			MappedConfiguration<String, String> configuration) {

		configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
		configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
	}

	public static Persons buildPersons() {
		return new PersonsBean();
	}
}
